package com.hu.common.domain.base1;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 355760
 * @version 1.0
 * @date 2024/7/14 9:01
 * @description: 基础VO
 */
@Data
public class BaseVO {
    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "创建时间", name = "gmtCreate", hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间", name = "gmtModified", hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtModified;

    /**
     * 是否删除，默认0，1表示删除
     */
    @ApiModelProperty(value = "是否删除", name = "isDeleted", hidden = true)
    private Boolean isDeleted;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人", name = "gmtCreateBy", hidden = true)
    private String gmtCreatedBy;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "更新人", name = "gmtModifiedBy", hidden = true)
    private String gmtModifiedBy;
}
